package com.sijibao.gather.event;

import java.io.Serializable;

public class WechatSessionCreateEvent extends Event implements Serializable
{

	private static final long serialVersionUID = -3076648676456687792L;

	/**
	 * 用户编码
	 */
	private String userCode;
	/**
	 * 时间 格式如：2017-11-11 12:15:32
	 */
	private long createTime;
	/**
	 * 定位经度
	 */
	private double longitude;
	/**
	 * 定位纬度
	 */
	private double latitude;

	public WechatSessionCreateEvent(String userCode, long createTime,
			double longitude, double latitude)
	{
		super(WechatSessionCreateEvent.class.getName());
		this.userCode = userCode;
		this.createTime = createTime;
		this.longitude = longitude;
		this.latitude = latitude;
	}

	public String getUserCode()
	{
		return userCode;
	}

	public void setUserCode(String userCode)
	{
		this.userCode = userCode;
	}

	public long getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(long createTime)
	{
		this.createTime = createTime;
	}

	public double getLongitude()
	{
		return longitude;
	}

	public void setLongitude(double longitude)
	{
		this.longitude = longitude;
	}

	public double getLatitude()
	{
		return latitude;
	}

	public void setLatitude(double latitude)
	{
		this.latitude = latitude;
	}

	@Override
	public String toString()
	{
		return "WechatSessionCreateEvent [userCode=" + userCode
				+ ", createTime=" + createTime + ", longitude=" + longitude
				+ ", latitude=" + latitude + "]";
	}

}
